<?php
$root = $_SERVER['DOCUMENT_ROOT'];
echo $root;
include($root . "/util/session.php"); //checks that the user is logged in

if (isset($_SESSION['IDupd'])) {
    unset($_SESSION['IDupd']);
    unset($_SESSION['type']);
} else if (isset($_SESSION['questionAdd'])) {
    unset($_SESSION['questionAdd']);
} else if (isset($_SESSION['questionUpdDel'])) {
    unset($_SESSION['questionUpdDel']);
} else if (isset($_SESSION['chapterPanel'])) {
    unset($_SESSION['chapterPanel']);
} else if (isset($_SESSION['subjectPanel'])) {
    unset($_SESSION['subjectPanel']);
}
header("location: ../teacher.php");
